<?php

	use think\facade\Route;

	Route::group('shop', function () {
		//用户
		Route::group('member', function () {
			//多级控制器路由写法
			Route::get('index', 'shop.MemberController/index');
		})->middleware(\app\middleware\CheckMember::class);

		//eb_user用户表
		Route::group('user', function () {
			Route::get('index', 'shop.UserController/index');
			Route::get('pay', 'shop.UserController/pay');
		})->middleware(\app\middleware\CheckMember::class);

		Route::any('user/verify', 'shop.UserController/verify');

		Route::group('common', function () {
			//多级控制器路由写法
			Route::any('upload/:extType', 'shop.CommonController/upload');
		});

		//不需要token信息的
		Route::group('wx', function () {
			Route::get('login', 'shop.WxSystemController/login');
			Route::post('getUserInfo', 'shop.WxSystemController/getUserInfo');
		});

		Route::group('tx', function () {
			Route::get('index', 'shop.TXcontroller/index');
		});
	});

